package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Process;
import com.qidianit.mes.pojo.pro.ProductionOrder;
import com.qidianit.mes.pojo.pro.Workflow;
import com.qidianit.mes.pojo.pro.WorkflowProduct;
import com.qidianit.mes.pro.mapper.ProductionOrderMapper;

import java.util.ArrayList;
import java.util.List;

public interface ProductionOrderService {
    Result<PageInfo<ProductionOrder>> selectList(ProductionOrder productionOrder,int pageNum, int pageSize);
    Result<ProductionOrder> selectById(Long id);
    Result insertProductionOrder(ProductionOrder productionOrder);
    Result updateById(ProductionOrder productionOrder);
    Result deleteById(Long id);

    Result<ProductionOrder> selectByProductionOrderCode(String productionOrderCode);


    Result<PageInfo<ProductionOrder>> selectListStatus(ProductionOrder productionOrder, int pageNum, int pageSize);

    Result<ArrayList<Workflow>> selectWorkflowById(Long id);

    Result updateStatusById(Long id);
    Result updateStatusById2(Long id);
    Result updateStatusById3(Long id);
}
